// 此文件被用于定义小仓库中数据state的TS类型
// 导入“vue-router”提供的“路由规则的配置对象”的TS数据类型↓
import type { RouteRecordRaw } from 'vue-router'
// 导入为接口“获取一级分类”、“获取二级分类”、“获取三级分类”的响应数据中的名为“data”的属性的值（它是一个数组）中的成员对象定义的TS类型↓
import { typeOfObjectAsTheMenberOfTheArrayAsTheValueOfThePropertyNamedDataInTheResponseDataOfInterfaceNamedGetCategory1AndGetCategory2AndGetCategory3 } from "@/api/product/attr"
// 定义用户数据类型并对外导出↓
export interface datatypeForStateOfUser {
    token:string|null,
    routesDisplayInMenu:RouteRecordRaw[],
    username:string,
    avatar:string,
    buttons:string[],
}
// 定义与“商品分类”有关的仓库中的state对象的数据类型并对外导出↓
export interface datatypeForStateOfCategory {
    anArrayThatStoreTheDataOfCategory1:typeOfObjectAsTheMenberOfTheArrayAsTheValueOfThePropertyNamedDataInTheResponseDataOfInterfaceNamedGetCategory1AndGetCategory2AndGetCategory3[],
    anArrayThatStoreTheDataOfCategory2:typeOfObjectAsTheMenberOfTheArrayAsTheValueOfThePropertyNamedDataInTheResponseDataOfInterfaceNamedGetCategory1AndGetCategory2AndGetCategory3[],
    anArrayThatStoreTheDataOfCategory3:typeOfObjectAsTheMenberOfTheArrayAsTheValueOfThePropertyNamedDataInTheResponseDataOfInterfaceNamedGetCategory1AndGetCategory2AndGetCategory3[],
    idOfCategory1:string|number,
    idOfCategory2:string|number,
    idOfCategory3:string|number,
}